package com.aplink.generic.pojo.controlspec.textview;

import com.aplink.generic.pojo.controlspec.ControlSpec;
import com.aplink.generic.util.ResourcesHelper;

public class TextViewSpec extends ControlSpec {
	/**
	 * 
	 */
	private static final long serialVersionUID = -4709306681066009924L;
	private boolean isNoduplicate;
	private String mContentData;
	private String mDisplayFormat;
	private String mDisplayType;

	public String getDisplayFormat() {
		return this.mDisplayFormat;
	}

	public DisplayStyle getDisplayStyle() {
		return DisplayStyle.get(this.mDisplayType);
	}

	public String getDisplayType() {
		return this.mDisplayType;
	}

	public void setDisplayFormat(final String displayFormat) {
		this.mDisplayFormat = displayFormat;
	}

	public void setDisplayType(final String displayType) {
		this.mDisplayType = displayType;
	}

	public TextViewSpec(final String contentDataName) {
		this.mContentData = contentDataName;
	}

	public String getContentData() {
		return this.mContentData;
	}

	public int getContentDataID() {
		return ResourcesHelper.getRawIdByName(this.mContentData);
	}

	public boolean isNoduplicate() {
		return this.isNoduplicate;
	}

	public void setContentData(final String contentData) {
		this.mContentData = contentData;
	}

	public void setNoduplicate(final boolean isNoduplicate) {
		this.isNoduplicate = isNoduplicate;
	}

}
